import QtQuick
import Qt5Compat.GraphicalEffects

pragma ComponentBehavior: Bound

Rectangle {
    id: root

    property int radius: 20

    layer.enabled: true
    layer.effect: OpacityMask {
        maskSource: mask
    }

    Rectangle {
        id: mask

        anchors.fill: parent
        radius: root.radius
    }
}
